﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace JXC.Core.Models
{
    /// <summary>
    /// 应收款单
    /// </summary>
    public class ShouldBeOfVoucher
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { get; set; }//单号
        public DateTime TermOfLoan { get; set; }//收款期限
        public DateTime DateOfOccurrence { get; set; }//发生日期
        [ForeignKey("TheCustomerTableId")]
        public Guid Client { get; set; }//客户
        public string Currency { get; set; }//货币
        public decimal AmountReceivable { get; set; }//应收金额
        public decimal AmountReceived { get; set; }//已收金额
        public decimal Balance { get; set; }//余额
        public string MarketOrSalesReturn { get; set; }//销售/退货
        [ForeignKey("UserInfosId")]
        public Guid Operator { get; set; }//操作员
        [ForeignKey("UserInfosId")]
        public Guid Auditor { get; set; }//审核人
        public string Remark { get; set; }//备注
        public string AuditStatus { get; set; }//审核状态
        public TheCustomerTable TheCustomerTable { get; set; }
        public UserInfos UserInfos { get; set; }
    }
}
